<?php
/**
 * Created by Alan.
 * User: Alan
 * Date: 2018\10\7 0007
 * Time: 18:17
 */

namespace app\common\model;


use think\Model;

class City extends Model
{
    public static function getNormalCityByParentId($parentId = 0)
    {
        $data = [
            'status' => 1,
            'parent_id' => intval($parentId)
        ];

        $order = [
            'id' => 'desc'
        ];

        return self::where($data)
            ->order($order)
            ->select();
    }
}